﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using AutoPartsSearch.Domain.Entities.Enums;

namespace AutoPartsSearch.Domain.Entities
{
    [Serializable]
    public class Dictionary
    {
        public int Id { get; set; }
        public DictionaryType? Type { get; set; }
        public Localization Name { get; set; }
        public int? ParentId { get; set; }
        public Localization ParentName { get; set; }
        public int? AdditionalParentId { get; set; }
        public string AdditionalParentName { get; set; }

        public Dictionary()
        {
        }

        public Dictionary(int id)
        {
            this.Id = id;
        }

        public Dictionary(string localizationValue)
        {
            this.Name = new Localization(localizationValue);
        }


    }
}
